var mongoose = require("mongoose")
mongoose.connect("mongodb://localhost:27017/test", {useMongoClient: true})
mongoose.connection.one("open",function(){
	console.log("数据库连接成功...")
})

// 将mongoose.Schema赋值给一个变量
var Schema = mongoose.Schema

// 创建Schema(模式)对象
var stuSchema = new Schema({
	name: String,
	age: Number,
	name: {
		type: String,
		default: "famale"
	},
	address: String
})
